(function () {
    $.fn.extend({
        zhuce() {
            $(this).on("click", function () {
                window.location.href = "../views/zc.html"
            })
        },
        denlu() {
            $(this).on("click", function () {
                let userList = JSON.parse(localStorage.getItem("user") || "[]")
                userList.some(function (el) {
                    if (el.phone == $(".inputuser").val() || el.pass == $(".inputpassw").val()) {
                        alert("登录成功")
                        $(".inputuser").val()
                        $(".inputpassw").val()
                        window.location.href = "../views/index.html"
                    }
                })
            })
        }
    })
})()